import service from '@/utils/request'

const RuleApi = {
  listRule:function(data){
    return service.get('rule/page', {params:data})
  },
  addRule:function(data){
      return service.post('rule', data)
  },
  editRule:function(data){
      return service.put('rule', data)
  },
  deleteRule:function(data){
      return service.put('rule/delete', data)
  },
  getRuleInfo(data){
      return service.get('rule', {params:data})
  },
  listIdName:function(data){
    return service.get('rule/listIdName', {params:data})
  },
}

export default RuleApi
